<HTML>
<HEAD>
<TITLE>[Chapter 19] Event</TITLE>
<META NAME="author" CONTENT="John Zukowski">
<META NAME="date" CONTENT="Thu Jul 31 15:11:54 1997">
<META NAME="form" CONTENT="html">
<META NAME="metadata" CONTENT="dublincore.0.1">
<META NAME="objecttype" CONTENT="book part">
<META NAME="otheragent" CONTENT="gmat dbtohtml">
<META NAME="publisher" CONTENT="O'Reilly &amp; Associates, Inc.">
<META NAME="source" CONTENT="SGML">
<META NAME="subject" CONTENT="Java AWT">
<META NAME="title" CONTENT="Java AWT">
<META HTTP-EQUIV="Content-Script-Type" CONTENT="text/javascript">
</HEAD>
<body vlink="#551a8b" alink="#ff0000" text="#000000" bgcolor="#FFFFFF" link="#0000ee">

<DIV CLASS=htmlnav>
<H1><a href='index.htm'><IMG SRC="gifs/smbanner.gif"
     ALT="Java AWT" border=0></a></H1>
<table width=515 border=0 cellpadding=0 cellspacing=0>
<tr>
<td width=172 align=left valign=top><A HREF="ch19_19.htm"><IMG SRC="gifs/txtpreva.gif" ALT="Previous" border=0></A></td>
<td width=171 align=center valign=top><B><FONT FACE="ARIEL,HELVETICA,HELV,SANSERIF" SIZE="-1">Chapter 19<br>java.awt Reference</FONT></B></TD>
<td width=172 align=right valign=top><A HREF="ch19_21.htm"><IMG SRC="gifs/txtnexta.gif" ALT="Next" border=0></A></td>
</tr>
</table>

&nbsp;
<hr align=left width=515>
</DIV>
<DIV CLASS=refnamediv>
<H1>Event</H1>

<H2>Name</H2>

Event

</DIV>

<DIV CLASS=refsect1>
<h2 CLASS=refsect1><A CLASS="TITLE" NAME="ch19-REFSECT1-AUTOID.20"></A></h2>
</DIV>


<p>
<img align=middle src="./figs/event.gif" alt="[Graphic: Figure from the text]" width=502 height=53 border=0>

</DIV>

<DIV CLASS=refsect1>
<h2 CLASS=refsect1><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-1">Description</A></h2>

<P CLASS=para>
The <tt CLASS=literal>Event</tt> class represents 
events that happen within the Java environment in a platform independent 
way. Events typically represent user actions, like typing a key or clicking 
the mouse. Although this class has been updated for the 1.1 release, it 
is only used for the 1.0 event model. When using the 1.1 event model, all 
events are represented by subclasses of <tt CLASS=literal>java.awt.AWTEvent</tt>. 

</DIV>

<DIV CLASS=refsect1>
<h2 CLASS=refsect1><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-2">Class Definition</A></h2>

<DIV CLASS=screen>
<P>
<PRE>
public class java.awt.Event
    extends java.lang.Object
    implements java.io.Serializable {
  
  // Constants
  public static final int ACTION_EVENT; 
  public static final int ALT_MASK;
  public static final int BACK_SPACE; <img src="gifs/bstar.gif" alt="(New)" border=0>
  public static final int CAPS_LOCK; <img src="gifs/bstar.gif" alt="(New)" border=0>
  public static final int CTRL_MASK;
  public static final int DELETE; <img src="gifs/bstar.gif" alt="(New)" border=0>
  public static final int DOWN;
  public static final int END;
  public static final int ENTER; <img src="gifs/bstar.gif" alt="(New)" border=0>
  public static final int ESCAPE; <img src="gifs/bstar.gif" alt="(New)" border=0>
  public static final int F1;
  public static final int F2;
  public static final int F3;
  public static final int F4;
  public static final int F5;
  public static final int F6;
  public static final int F7;
  public static final int F8;
  public static final int F9;
  public static final int F10;
  public static final int F11;
  public static final int F12;
  public static final int GOT_FOCUS;
  public static final int HOME;
  public static final int INSERT; <img src="gifs/bstar.gif" alt="(New)" border=0>
  public static final int KEY_ACTION;
  public static final int KEY_ACTION_RELEASE;
  public static final int KEY_PRESS;
  public static final int KEY_RELEASE;
  public static final int LEFT;
  public static final int LIST_DESELECT;
  public static final int LIST_SELECT;
  public static final int LOAD_FILE;
  public static final int LOST_FOCUS;
  public static final int META_MASK;
  public static final int MOUSE_DOWN;
  public static final int MOUSE_DRAG;
  public static final int MOUSE_ENTER;
  public static final int MOUSE_EXIT;
  public static final int MOUSE_MOVE;
  public static final int MOUSE_UP;
  public static final int NUM_LOCK; <img src="gifs/bstar.gif" alt="(New)" border=0>
  public static final int PAUSE; <img src="gifs/bstar.gif" alt="(New)" border=0>
  public static final int PGDN;
  public static final int PGUP;
  public static final int PRINT_SCREEN; <img src="gifs/bstar.gif" alt="(New)" border=0>
  public static final int RIGHT;
  public static final int SAVE_FILE;
  public static final int SCROLL_ABSOLUTE;
  public static final int SCROLL_BEGIN; <img src="gifs/bstar.gif" alt="(New)" border=0>
  public static final int SCROLL_END; <img src="gifs/bstar.gif" alt="(New)" border=0>
  public static final int SCROLL_LINE_DOWN;
  public static final int SCROLL_LINE_UP;
  public static final int SCROLL_LOCK; <img src="gifs/bstar.gif" alt="(New)" border=0>
  public static final int SCROLL_PAGE_DOWN;
  public static final int SCROLL_PAGE_UP;
  public static final int SHIFT_MASK;
  public static final int TAB; <img src="gifs/bstar.gif" alt="(New)" border=0>
  public static final int UP;
  public static final int WINDOW_DEICONIFY;
  public static final int WINDOW_DESTROY;
  public static final int WINDOW_EXPOSE;
  public static final int WINDOW_ICONIFY;
  public static final int WINDOW_MOVED;
  
  // Variables
  public Object arg;
  public int clickCount;
  public Event evt;
  public int id;
  public int key;
  public int modifiers;
  public Object target;
  public long when;
  public int x;
  public int y;
  
  // Constructors
  public Event (Object target, int id, Object arg);
  public Event (Object target, long when, int id, int x, int y, 
      int key, int modifiers);
  public Event (Object target, long when, int id, int x, int y, 
      int key, int modifiers, Object arg);
  
  // Instance Methods
  public boolean controlDown();
  public boolean metaDown();
  public boolean shiftDown();
  public String toString();
  public void translate (int x, int y);
  
  // Protected Instance Methods
  protected String paramString();
}
</PRE>
</DIV>

</DIV>

<DIV CLASS=refsect1>
<h2 CLASS=refsect1><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3">Constants</A></h2>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.1">ACTION_EVENT</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.1.1">public static final int ACTION_EVENT</A></h4>

<P CLASS=para>
ID constant for Action <tt CLASS=literal>Event</tt>. 

</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.2">ALT_MASK</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.2.1">public static final int ALT_MASK</A></h4>

<P CLASS=para>
Mask for ALT key. 

</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.3">BACK_SPACE</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.3.1">public static final int BACK_SPACE <img src="gifs/bstar.gif" alt="(New)" border=0></A></h4>

<P CLASS=para>
ID constant for Backspace. 

</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.4">CAPS_LOCK</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.4.1">public static final int CAPS_LOCK <img src="gifs/bstar.gif" alt="(New)" border=0></A></h4>

<P CLASS=para>
ID constant for Caps Lock key. 

</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.5">CTRL_MASK</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.5.1">public static final int CTRL_MASK</A></h4>

<P CLASS=para>
Mask for Control key. 

</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.6">DELETE</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.6.1">public static final int DELETE <img src="gifs/bstar.gif" alt="(New)" border=0></A></h4>

<P CLASS=para>
ID constant for Delete. 

</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.7">DOWN</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.7.1">public static final int DOWN</A></h4>

<P CLASS=para>
ID constant for the down arrow key. 

</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.8">END</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.8.1">public static final int END</A></h4>

<P CLASS=para>
ID constant for End key. 

</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.9">ENTER</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.9.1">public static final int ENTER <img src="gifs/bstar.gif" alt="(New)" border=0></A></h4>

<P CLASS=para>
ID constant for Enter key. 

</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.10">ESCAPE</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.10.1">public static final int ESCAPE <img src="gifs/bstar.gif" alt="(New)" border=0></A></h4>

<P CLASS=para>
ID constant for Escape key. 

</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.11">F1</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.11.1">public static final int F1</A></h4>

<P CLASS=para>
ID constant for F1 key. 

</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.12">F2</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.12.1">public static final int F2</A></h4>

<P CLASS=para>
ID constant for F2 key. 

</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.13">F3</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.13.1">public static final int F3</A></h4>

<P CLASS=para>
ID constant for F3 key. 

</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.14">F4</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.14.1">public static final int F4</A></h4>

<P CLASS=para>
ID constant for F4 key. 

</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.15">F5</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.15.1">public static final int F5</A></h4>

<P CLASS=para>
ID constant for F5 key. 

</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.16">F6</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.16.1">public static final int F6</A></h4>

<P CLASS=para>
ID constant for F6 key. 

</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.17">F7</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.17.1">public static final int F7</A></h4>

<P CLASS=para>
ID constant for F7 key. 

</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.18">F8</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.18.1">public static final int F8</A></h4>

<P CLASS=para>
ID constant for F8 key. 

</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.19">F9</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.19.1">public static final int F9</A></h4>

<P CLASS=para>
ID constant for F9 key. 

</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.20">F10</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.20.1">public static final int F10</A></h4>

<P CLASS=para>
ID constant for F10 key. 

</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.21">F11</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.21.1">public static final int F11</A></h4>

<P CLASS=para>
ID constant for F11 key. 

</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.22">F12</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.22.1">public static final int F12</A></h4>

<P CLASS=para>
ID constant for F12 key. 

</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.23">GOT_FOCUS</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.23.1">public static final int GOT_FOCUS</A></h4>

<P CLASS=para>
ID constant for getting input focus <tt CLASS=literal>Event</tt>. 

</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.24">HOME</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.24.1">public static final int HOME</A></h4>

<P CLASS=para>
ID constant for Home key. 

</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.25">INSERT</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.25.1">public static final int INSERT <img src="gifs/bstar.gif" alt="(New)" border=0></A></h4>

<P CLASS=para>
ID constant for Insert key. 

</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.26">KEY_ACTION</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.26.1">public static final int KEY_ACTION</A></h4>

<P CLASS=para>
ID constant for Special Key Down Event. 

</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.27">KEY_ACTION_RELEASE</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.27.1">public static final int KEY_ACTION_RELEASE</A></h4>

<P CLASS=para>
ID constant for Special Key Up Event. 

</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.28">KEY_PRESS</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.28.1">public static final int KEY_PRESS</A></h4>

<P CLASS=para>
ID constant for Key Down <tt CLASS=literal>Event</tt>. 

</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.29">KEY_RELEASE</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.29.1">public static final int KEY_RELEASE</A></h4>

<P CLASS=para>
ID constant for Key Up <tt CLASS=literal>Event</tt>. 

</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.30">LEFT</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.30.1">public static final int LEFT</A></h4>

<P CLASS=para>
ID constant for the left arrow key. 

</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.31">LIST_DESELECT</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.31.1">public static final int LIST_DESELECT</A></h4>

<P CLASS=para>
ID constant for List DeSelect <tt CLASS=literal>Event</tt>. 

</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.32">LIST_SELECT</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.32.1">public static final int LIST_SELECT</A></h4>

<P CLASS=para>
ID constant for List Select <tt CLASS=literal>Event</tt>. 

</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.33">LOAD_FILE</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.33.1">public static final int LOAD_FILE</A></h4>

<P CLASS=para>
ID constant for File Load <tt CLASS=literal>Event</tt>. 

</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.34">LOST_FOCUS</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.34.1">public static final int LOST_FOCUS</A></h4>

<P CLASS=para>
ID constant for losing input focus <tt CLASS=literal>Event</tt>. 

</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.35">META_MASK</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.35.1">public static final int META_MASK</A></h4>

<P CLASS=para>
Mask for ALT key. 

</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.36">MOUSE_DOWN</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.36.1">public static final int MOUSE_DOWN</A></h4>

<P CLASS=para>
ID constant for Mouse Down <tt CLASS=literal>Event</tt>. 

</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.37">MOUSE_DRAG</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.37.1">public static final int MOUSE_DRAG</A></h4>

<P CLASS=para>
ID constant for Mouse Drag <tt CLASS=literal>Event</tt>. 

</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.38">MOUSE_ENTER</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.38.1">public static final int MOUSE_ENTER</A></h4>

<P CLASS=para>
ID constant for Mouse Enter <tt CLASS=literal>Event</tt>. 

</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.39">MOUSE_EXIT</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.39.1">public static final int MOUSE_EXIT</A></h4>

<P CLASS=para>
ID constant for Mouse Exit <tt CLASS=literal>Event</tt>. 

</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.40">MOUSE_MOVE</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.40.1">public static final int MOUSE_MOVE</A></h4>

<P CLASS=para>
ID constant for Mouse Move <tt CLASS=literal>Event</tt>. 

</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.41">MOUSE_UP</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.41.1">public static final int MOUSE_UP</A></h4>

<P CLASS=para>
ID constant for Mouse Up <tt CLASS=literal>Event</tt>. 

</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.42">NUM_LOCK</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.42.1">public static final int NUM_LOCK <img src="gifs/bstar.gif" alt="(New)" border=0></A></h4>

<P CLASS=para>
ID constant for Num Lock key. 

</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.43">PAUSE</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.43.1">public static final int PAUSE <img src="gifs/bstar.gif" alt="(New)" border=0></A></h4>

<P CLASS=para>
ID constant for Pause key. 

</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.44">PGDN</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.44.1">public static final int PGDN</A></h4>

<P CLASS=para>
ID constant for PageDown key. 

</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.45">PGUP</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.45.1">public static final int PGUP</A></h4>

<P CLASS=para>
ID constant for PageUp key. 

</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.46">PRINT_SCREEN</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.46.1">public static final int PRINT_SCREEN <img src="gifs/bstar.gif" alt="(New)" border=0></A></h4>

<P CLASS=para>
ID constant for Print Screen key. 

</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.47">RIGHT</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.47.1">public static final int RIGHT</A></h4>

<P CLASS=para>
ID constant for the right arrow key. 

</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.48">SAVE_FILE</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.48.1">public static final int SAVE_FILE</A></h4>

<P CLASS=para>
ID constant for File Save <tt CLASS=literal>Event</tt>. 

</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.49">SCROLL_ABSOLUTE</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.49.1">public static final int SCROLL_ABSOLUTE</A></h4>

<P CLASS=para>
ID constant for Absolute Scroll <tt CLASS=literal>Event</tt>. 

</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.50">SCROLL_BEGIN</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.50.1">public static final int SCROLL_ BEGIN <img src="gifs/bstar.gif" alt="(New)" border=0></A></h4>

<P CLASS=para>
ID constant for Begin Scroll <tt CLASS=literal>Event</tt>. 

</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.51">SCROLL_END</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.51.1">public static final int SCROLL_ END <img src="gifs/bstar.gif" alt="(New)" border=0></A></h4>

<P CLASS=para>
ID constant for End Scroll <tt CLASS=literal>Event</tt>. 

</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.52">SCROLL_LINE_DOWN</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.52.1">public static final int SCROLL_LINE_DOWN</A></h4>

<P CLASS=para>
ID constant for Line Down Scroll <tt CLASS=literal>Event</tt>. 

</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.53">SCROLL_LINE_UP</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.53.1">public static final int SCROLL_LINE_UP</A></h4>

<P CLASS=para>
ID constant for Line Up Scroll <tt CLASS=literal>Event</tt>. 

</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.54">SCROLL_LOCK</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.54.1">public static final int SCROLL_LOCK <img src="gifs/bstar.gif" alt="(New)" border=0></A></h4>

<P CLASS=para>
Mask for Scroll Lock key. 

</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.55">SCROLL_PAGE_DOWN</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.55.1">public static final int SCROLL_PAGE_DOWN</A></h4>

<P CLASS=para>
ID constant for Page Down Scroll <tt CLASS=literal>Event</tt>. 

</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.56">SCROLL_PAGE_UP</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.56.1">public static final int SCROLL_PAGE_UP</A></h4>

<P CLASS=para>
ID constant for Page Up Scroll <tt CLASS=literal>Event</tt>. 

</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.57">SHIFT_MASK</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.57.1">public static final int SHIFT_MASK</A></h4>

<P CLASS=para>
Mask for SHIFT key. 

</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.58">TAB</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.58.1">public static final int TAB <img src="gifs/bstar.gif" alt="(New)" border=0></A></h4>

<P CLASS=para>
ID constant for Tab key. 

</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.59">UP</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.59.1">public static final int UP</A></h4>

<P CLASS=para>
ID constant for the up arrow key. 

</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.60">WINDOW_DEICONIFY</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.60.1">public static final int WINDOW_DEICONIFY</A></h4>

<P CLASS=para>
ID constant for Window DeIconify <tt CLASS=literal>Event</tt>. 

</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.61">WINDOW_DESTROY</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.61.1">public static final int WINDOW_DESTROY</A></h4>

<P CLASS=para>
ID constant for Window Destroy <tt CLASS=literal>Event</tt>. 

</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.62">WINDOW_EXPOSE</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.62.1">public static final int WINDOW_EXPOSE</A></h4>

<P CLASS=para>
ID constant for Window Expose <tt CLASS=literal>Event</tt>. 

</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.63">WINDOW_ICONIFY</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.63.1">public static final int WINDOW_ICONIFY</A></h4>

<P CLASS=para>
ID constant for Window Iconify <tt CLASS=literal>Event</tt>. 

</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.64">WINDOW_MOVED</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-3.64.1">public static final int WINDOW_MOVED</A></h4>

<P CLASS=para>
ID constant for Window Move <tt CLASS=literal>Event</tt>. 

</DIV>

</DIV>

</DIV>

<DIV CLASS=refsect1>
<h2 CLASS=refsect1><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-4">Variables</A></h2>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-4.1">arg</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-4.1.1">public Object arg</A></h4>

<P CLASS=para>
A variable argument that is specific to the event type. 

</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-4.2">clickCount</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-4.2.1">public int clickCount</A></h4>

<P CLASS=para>
The number of consecutive MOUSE_DOWN events. 

</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-4.3">evt</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-4.3.1">public Event evt</A></h4>

<P CLASS=para>
A means of passing a linked list of events as one. 

</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-4.4">id</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-4.4.1">public int id</A></h4>

<P CLASS=para>
The ID constant that identifies the <tt CLASS=literal>Event</tt> 
type. 

</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-4.5">key</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-4.5.1">public int key</A></h4>

<P CLASS=para>
Integer value of key pressed, or ID constant identifying a special key. 

</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-4.6">modifiers</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-4.6.1">public int modifiers</A></h4>

<P CLASS=para>
The state of the shift/alt/control/meta keys, formed 
by ORing the masks for the appropriate keys. 

</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-4.7">target</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-4.7.1">public Object target</A></h4>

<P CLASS=para>
The <tt CLASS=literal>Object</tt> that generated the 
event. 

</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-4.8">when</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-4.8.1">public long when</A></h4>

<P CLASS=para>
The time the event happened. 

</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-4.9">x</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-4.9.1">public int x</A></h4>

<P CLASS=para>
The x position at which the event happened. 

</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-4.10">y</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-4.10.1">public int y</A></h4>

<P CLASS=para>
The y position at which the event happened. 

</DIV>

</DIV>

</DIV>

<DIV CLASS=refsect1>
<h2 CLASS=refsect1><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-5">Constructors</A></h2>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-5.1">Event</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-5.1.1">public Event (Object target, int id, Object arg)</A></h4>

<DL CLASS=variablelist>
<DT CLASS=varlistentry>Parameters<br>
<DD>

<P>
<DL CLASS=variablelist>
<DT CLASS=varlistentry><I CLASS=emphasis>target</I><br>
<DD>

<P CLASS=para>
The component to which the <tt CLASS=literal>Event</tt> 
should be delivered 

<p>
<DT CLASS=varlistentry><I CLASS=emphasis>id</I><br>
<DD>

<P CLASS=para>
The identifier of <tt CLASS=literal>Event</tt> 

<p>
<DT CLASS=varlistentry><I CLASS=emphasis>arg</I><br>
<DD>

<P CLASS=para>
The <tt CLASS=literal>Object</tt> 
that is the cause of the event </DL>
<p>
<DT CLASS=varlistentry>Description<br>
<DD>

<P CLASS=para>
Constructs an <tt CLASS=literal>Event</tt> object 
with the given values. </DL>
</DIV>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-5.1.2">public Event (Object target, long when, int id, int x, int y, int key, int modifiers)</A></h4>

<DL CLASS=variablelist>
<DT CLASS=varlistentry>Parameters<br>
<DD>

<P>
<DL CLASS=variablelist>
<DT CLASS=varlistentry><I CLASS=emphasis>target</I><br>
<DD>

<P CLASS=para>
The component to which the <tt CLASS=literal>Event</tt> 
should be delivered 

<p>
<DT CLASS=varlistentry><I CLASS=emphasis>when</I><br>
<DD>

<P CLASS=para>
The time the event happened 

<p>
<DT CLASS=varlistentry><I CLASS=emphasis>id</I><br>
<DD>

<P CLASS=para>
The identifier of <tt CLASS=literal>Event</tt> 

<p>
<DT CLASS=varlistentry><I CLASS=emphasis>x</I><br>
<DD>

<P CLASS=para>
The x position at which the event happened 

<p>
<DT CLASS=varlistentry><I CLASS=emphasis>y</I><br>
<DD>

<P CLASS=para>
The y position at which the event happened 

<p>
<DT CLASS=varlistentry><I CLASS=emphasis>key</I><br>
<DD>

<P CLASS=para>
Integer value of key pressed, or a constant identifying 
a special key

<p>
<DT CLASS=varlistentry><I CLASS=emphasis>modifiers</I><br>
<DD>

<P CLASS=para>
The state of the shift/alt/control/meta 
keys</DL>
<p>
<DT CLASS=varlistentry>Description<br>
<DD>

<P CLASS=para>
Constructs an <tt CLASS=literal>Event</tt> object 
with the given values. </DL>
</DIV>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-5.1.3">public Event (Object target, long when, int id, int x, int y, int key, int modifiers, Object arg)</A></h4>

<DL CLASS=variablelist>
<DT CLASS=varlistentry>Parameters<br>
<DD>

<P>
<DL CLASS=variablelist>
<DT CLASS=varlistentry><I CLASS=emphasis>target</I><br>
<DD>

<P CLASS=para>
The component to which the <tt CLASS=literal>Event</tt> 
should be delivered 

<p>
<DT CLASS=varlistentry><I CLASS=emphasis>when</I><br>
<DD>

<P CLASS=para>
The time the event happened 

<p>
<DT CLASS=varlistentry><I CLASS=emphasis>id</I><br>
<DD>

<P CLASS=para>
The identifier of <tt CLASS=literal>Event</tt> 

<p>
<DT CLASS=varlistentry><I CLASS=emphasis>x</I><br>
<DD>

<P CLASS=para>
The x position at which the event happened 

<p>
<DT CLASS=varlistentry><I CLASS=emphasis>y</I><br>
<DD>

<P CLASS=para>
The y position at which the event happened 

<p>
<DT CLASS=varlistentry><I CLASS=emphasis>key</I><br>
<DD>

<P CLASS=para>
Integer value of key pressed, or a constant identifying 
a special key

<p>
<DT CLASS=varlistentry><I CLASS=emphasis>modifiers</I><br>
<DD>

<P CLASS=para>
The state of the shift/alt/control/meta 
keys

<p>
<DT CLASS=varlistentry><I CLASS=emphasis>arg</I><br>
<DD>

<P CLASS=para>
The <tt CLASS=literal>Object</tt> 
that is the cause of the event </DL>
<p>
<DT CLASS=varlistentry>Description<br>
<DD>

<P CLASS=para>
Constructs an <tt CLASS=literal>Event</tt> object 
with the given values. </DL>
</DIV>

</DIV>

</DIV>

<DIV CLASS=refsect1>
<h2 CLASS=refsect1><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-6">Instance Methods</A></h2>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-6.1">controlDown</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-6.1.1">public boolean controlDown()</A></h4>

<DL CLASS=variablelist>
<DT CLASS=varlistentry>Returns<br>
<DD>

<P CLASS=para>
<tt CLASS=literal>true</tt> if the control key was 
down when the event was triggered, <tt CLASS=literal>false</tt> 
otherwise. 

<p>
<DT CLASS=varlistentry>Description<br>
<DD>

<P CLASS=para>
Checks current settings for modifiers of the <tt CLASS=literal>Event</tt>. </DL>
</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-6.2">metaDown</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-6.2.1">public boolean metaDown()</A></h4>

<DL CLASS=variablelist>
<DT CLASS=varlistentry>Returns<br>
<DD>

<P CLASS=para>
<tt CLASS=literal>true</tt> if the meta key was down 
when the event was triggered, <tt CLASS=literal>false</tt> 
otherwise. 

<p>
<DT CLASS=varlistentry>Description<br>
<DD>

<P CLASS=para>
Checks current settings for modifiers of the <tt CLASS=literal>Event</tt>. </DL>
</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-6.3">shiftDown</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-6.3.1">public boolean shiftDown()</A></h4>

<DL CLASS=variablelist>
<DT CLASS=varlistentry>Returns<br>
<DD>

<P CLASS=para>
<tt CLASS=literal>true</tt> if the shift key was down 
when the event was triggered, <tt CLASS=literal>false</tt> 
otherwise. 

<p>
<DT CLASS=varlistentry>Description<br>
<DD>

<P CLASS=para>
Checks current settings for modifiers of the <tt CLASS=literal>Event</tt>. </DL>
</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-6.4">toString</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-6.4.1">public String toString()</A></h4>

<DL CLASS=variablelist>
<DT CLASS=varlistentry>Returns<br>
<DD>

<P CLASS=para>
A string representation of the <tt CLASS=literal>Event</tt> 
object. 

<p>
<DT CLASS=varlistentry>Overrides<br>
<DD>

<P CLASS=para>
<tt CLASS=literal>Object.toString()</tt> </DL>
</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-6.5">translate</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-6.5.1">public void translate (int x, int y)</A></h4>

<DL CLASS=variablelist>
<DT CLASS=varlistentry>Parameters<br>
<DD>

<P>
<DL CLASS=variablelist>
<DT CLASS=varlistentry><I CLASS=emphasis>x</I><br>
<DD>

<P CLASS=para>
Amount to move <tt CLASS=literal>Event</tt> 
in horizontal direction. 

<p>
<DT CLASS=varlistentry><I CLASS=emphasis>y</I><br>
<DD>

<P CLASS=para>
Amount to move <tt CLASS=literal>Event</tt> 
in vertical direction. </DL>
<p>
<DT CLASS=varlistentry>Description<br>
<DD>

<P CLASS=para>
Translates x and y coordinates of <tt CLASS=literal>Event</tt> 
instance by <tt CLASS=literal>x</tt> and <tt CLASS=literal>y</tt>. </DL>
</DIV>

</DIV>

</DIV>

<DIV CLASS=refsect1>
<h2 CLASS=refsect1><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-7">Protected Instance Methods</A></h2>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-7.1">paramString</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-7.1.1">protected String paramString()</A></h4>

<DL CLASS=variablelist>
<DT CLASS=varlistentry>Returns<br>
<DD>

<P CLASS=para>
String with current settings of <tt CLASS=literal>Event</tt>. 

<p>
<DT CLASS=varlistentry>Description<br>
<DD>

<P CLASS=para>
Helper method for <tt CLASS=literal>toString()</tt> 
to generate string of current settings. </DL>
</DIV>

</DIV>

</DIV>

<DIV CLASS=refsect1>
<h2 CLASS=refsect1><A CLASS="TITLE" NAME="JAWT-CH-19-REF-EVENT-SECT-8">See Also</A></h2>

<P CLASS=para>
<tt CLASS=literal>AWTEvent</tt>, <tt CLASS=literal>Component</tt>, 
<tt CLASS=literal>Object</tt>, <tt CLASS=literal>String</tt> 

</DIV>


<DIV CLASS=htmlnav>

<P>
<HR align=left width=515>
<table width=515 border=0 cellpadding=0 cellspacing=0>
<tr>
<td width=172 align=left valign=top><A HREF="ch19_19.htm"><IMG SRC="gifs/txtpreva.gif" ALT="Previous" border=0></A></td>
<td width=171 align=center valign=top><a href="index.htm"><img src='gifs/txthome.gif' border=0 alt='Home'></a></td>
<td width=172 align=right valign=top><A HREF="ch19_21.htm"><IMG SRC="gifs/txtnexta.gif" ALT="Next" border=0></A></td>
</tr>
<tr>
<td width=172 align=left valign=top>Dimension</td>
<td width=171 align=center valign=top><a href="index/idx_a.htm"><img src='gifs/index.gif' alt='Book Index' border=0></a></td>
<td width=172 align=right valign=top>EventQueue <img src="gifs/bstar.gif" alt="(New)" border=0></td>
</tr>
</table>
<hr align=left width=515>

<IMG SRC="gifs/smnavbar.gif" USEMAP="#map" BORDER=0> 
<MAP NAME="map"> 
<AREA SHAPE=RECT COORDS="0,0,108,15" HREF="../javanut/index.htm"
alt="Java in a Nutshell"> 
<AREA SHAPE=RECT COORDS="109,0,200,15" HREF="../langref/index.htm" 
alt="Java Language Reference"> 
<AREA SHAPE=RECT COORDS="203,0,290,15" HREF="../awt/index.htm" 
alt="Java AWT"> 
<AREA SHAPE=RECT COORDS="291,0,419,15" HREF="../fclass/index.htm" 
alt="Java Fundamental Classes"> 
<AREA SHAPE=RECT COORDS="421,0,514,15" HREF="../exp/index.htm" 
alt="Exploring Java"> 
</MAP>
</DIV>

</BODY>
</HTML>
